package myuser;//用户包

import Operation.IOperation;
import mybook.MyBookList;

//用户父类用来确认用户和实现对图书的操作
public abstract class User {

    protected String name;

    public IOperation[] iOperations;

    public User(String name) {

        this.name = name;
    }

    public abstract int menu();

    public void doOperation(int choice, MyBookList myBookList) {
        iOperations[choice].work(myBookList);
    }

}